package com.jiazhong.commons.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiazhong.commons.Util.StringUtil;
import lombok.Data;

@Data
@TableName("`user`")
public class User {
    @TableId
    private String id;
    private String username;
    private String password;
    private String phone;
    private String email;
    private String address;
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;
    private Integer isDeleted;
    private Integer isAdmin;
    private Integer score;

//    public void setPassword() {
//        this.password = StringUtil.encryptMD5(password);
//    }
}
